package cn.tedu.spring.h2;
//针对 属性为引用类型
public class D1 {
    //产生错误
    Person person1;
    Person person;

    public Person getPerson1() {
        return person1;
    }

    public void setPerson1(Person person1) {
        this.person1 = person1;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    @Override
    public String toString() {
        return "D1{" +
                "person1=" + person1 +
                ", person=" + person +
                '}';
    }
}
